import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  title = 'zhiling2';

  en1 = true;
  en2 = true;
  en3 = true;
  en4 = true;
  en5 = true;

  caidan=[{p1:'任务'},{p2:'自由'},{p3:'调查'},{p4:'活动'}];

  isBordered= false;

  onToggle(){
    this.en1 = !this.en1;
    return false;
  }

  onToggle1(){
    this.en2 = !this.en3;
    return false;
  }

  onToggle2(){
    this.en3 = !this.en4;
    return false;
  }

  onToggle3(){
    this.en4 = !this.en4;
    return false;
  }

  onToggle4(){
    this.en5 = !this.en5;
    return false;
  }

  toggleBorder(){
    this.isBordered = !this.isBordered;
  }
}
